﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MKIB3Game
{
   public  class Map
    {
        private int width, height;
        private MapCell[,] fields;

        public Map(int width, int height)
        {
            setWidth(width);
            setHeigth(height);
            fields = new MapCell[width,height];
        }

        private void setWidth(int width)
        {
            this.width = width;

        }

        public int getWidth()
        {
            return this.width;
        }

        private void setHeigth(int heigth)
        {
            this.height = heigth;
        }

        public int getHeigth()
        {
            return this.height;
        }

        public void setMapCell(MapCell field)
        {
            fields[field.getCol(),field.getRow()] = field;
        }
        public void setMapCell(int col, int row, List<MapCellPropertyEnum> cellProp) 
        {// verdreht
            this.setMapCell(new MapCell(col, row, cellProp));
        }
        public MapCell getMapCell(int x, int y)
        {
            return fields[x,y];
        }
       
    }
}
